package com.hzp.micromall.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzp.micromall.order.dto.OmsOrderDeliveryParam;
import com.hzp.micromall.order.dto.OmsOrderDetail;
import com.hzp.micromall.order.dto.OmsOrderQueryParam;
import com.hzp.micromall.order.entity.OmsOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author houzipeng
 * @Date 2022/2/28 22:02
 * @Version 1.0
 */
@Mapper
public interface OmsOrderDao extends BaseMapper<OmsOrder> {
    /**
     * 条件查询订单
     */
    Page<OmsOrder> getPage(@Param("page") Page<OmsOrder> page, @Param("queryParam") OmsOrderQueryParam queryParam);

    /**
     * 批量发货
     */
    int delivery(@Param("list") List<OmsOrderDeliveryParam> deliveryParamList);

    /**
     * 获取订单详情
     */
    OmsOrderDetail getDetail(@Param("id") Long id);
}
